package com.bestom.sharingbookcase.entity;

/**
 * @author shulman
 */

public enum TopicStep {

    // 读取设备属性
    ReadPropertiesSubscribeTopic("/bookshelf/%s/properties/read"),
    ReadPropertiesPublishTopic("/bookshelf/%s/properties/read/reply"),
    // 修改设备属性
    WritePropertiesSubscribeTopic("/bookshelf/%s/properties/write"),
    WritePropertiesPublishTopic("/bookshelf/%s/properties/write/reply"),
    // 设备属性上报
    ReportPublishTopic("/bookshelf/%s/properties/report"),

    // 设备事件上报
    EventPublishTopic("/bookshelf/%s/event/%s"),
    // 旋转编码器异常
    RotateEncoderExcPublishTopic("/bookshelf/%s/event/rotateEncoderExc"),
    // 校零传感器异常
    zeroSensorExcPublishTopic("/bookshelf/%s/event/zeroSensorExc"),
    // 锁动作传感器异常
    lockSensorExcPublishTopic("/bookshelf/%s/event/lockSensorExc"),
    // 按键异常
    keyExcPublishTopic("/bookshelf/%s/event/keyExc"),
    // 拉取书格状态
    syncLatticeEvPublishTopic("/bookshelf/%s/event/syncLatticeEv"),
    // 关格锁动作上报
    closeLockEvPublishTopic("/bookshelf/%s/event/closeLockEv"),

    // 锁动作
    SubscribeTopic("/bookshelf/%s/function/invoke"),
    PublishTopic("/bookshelf/%s/function/invoke/reply"),
    ;

    private String topicString;

    TopicStep(String topicString) {
        this.topicString = topicString;
    }

    public String getTopicString() {
        return topicString;
    }
}
